package edu.ncsu.csc.itrust.bean;

import java.sql.Timestamp;
import junit.framework.TestCase;
import edu.ncsu.csc.itrust.beans.PatientReferralBean;

public class PatientReferralBeanTest extends TestCase {

	public void testBean() {
		Timestamp t = new Timestamp(1000000L);
		
		
		PatientReferralBean r = new PatientReferralBean();
		r.setId(1);
		r.setSenderID(2L);
		r.setReceiverID(3L);
		r.setPatientID(4L);
		r.setReferralDetails("Five");
		r.setOfficeVisitID(1000);
		r.setPriority(3);
		
		assertEquals(1, r.getId());
		assertEquals(2, r.getSenderID());
		assertEquals(3, r.getReceiverID());
		assertEquals(4, r.getPatientID());
		assertEquals("Five", r.getReferralDetails());
		assertEquals(1000, r.getOfficeVisitID());
		assertEquals(3, r.getPriority());
	}
//1969-12-31 19:16:40.0
}
